<? // print_r($rollespillere) ;



?>



<div>
	<div style="float:right;text-align:right;font-size: 0.7em;">
	<?	if($kampagne['offgame_slut'] == 0)
		{?>
		<p class="rubrik">Start: <? echo $kampagne['offgame_start']; ?><br/>
		Der spilles hver tirsdag</p>
	<?	}
		else
		{?>
		<p class="rubrik">Start: <? echo $kampagne['offgame_start'] ;?><br/>
		Slut: <? echo $kampagne['offgame_slut']; ?></p>
	<?	}?>
	</div>
	<h2 class="ink"><? echo $kampagne['navn']; ?></h2>
</div>

<!--h1 class="ink">Mål</h1>

<h1 class="ink">Konceptet bag</h1-->




<br/>
<? 
if(isset($naeste_session))
{ 	?>
<div style="overflow:auto;width:;">
	<form action="<? echo base_url(); ?>core/rediger/begivenhed_deltager/tilfoej/<? echo $naeste_session['id']; ?>" method="post">	
	<input type="submit" class="terninger" value="">
	<h3 class="rubrik" style="margin:0px 0px 0px 0px;">Meld en karakter til næste Session:</h3>

			




		
	<input type="hidden" name="vinkel" value="session">
	<input type="hidden" name="kampagne_id" value="<? echo $kampagne['id']; ?>">
	<select name="deltager_id">
		<?

		foreach($pcer as $r)
		{
			
				?>
					<option value="<? echo $r['pc_id']; ?>"><? echo $r['pc_navn']; ?></option>
				<?
			
		
		}
		?>
	</select>

</form>
			
			<?
			if($deltager['username'] == 'gmp')
			{
					?>
					<p class="rubrik">
						<a class="rubrik" href="<? echo base_url();?>entitet/tilfoej/npc">Opret NPC</a>
					</p>
					<?
	//		echo "Kære gamemaster - du skal selvfølgelig have mulighed for at se det hele ;-)";
				foreach($alle_pcer as $r)
				{
					?>
					
					<li>
	            <a class="ink" href="<? echo base_url();?>deltager/go_ingame/<? echo $r['pc_id']; ?>/<? echo $r['pc_navn'];?>"><? echo $r['pc_navn'];?></a>
					<?
				}
			}
			?>
			
		</ul>


	

</div>	


	<div style="padding:10px;background:#FEFFF6;border:solid 1px #BEBAA0;">
		<h3 class="ink" >
			<span class="rubrik"><span style="float:right;">
				<? echo $naeste_session['offgame_start'];?></span>Session <? echo $naeste_session['nummer'];?>
			</span>
			<br/>
			<? echo $naeste_session['navn'];?>
		</h3>
	<br>
	<h4 class="rubrik">
		Tilmeldte karakterer
	</h4>
	


	<p class="rubrik" style="padding:0px 0px 10px 0px;">
	<?
foreach($rollespillere as $r2)
{


	if($deltager['id'] == $r2['id_rollespiller'])
	{
		
		echo anchor("core/rediger/begivenhed_deltager/slet/".$naeste_session['id']."/".$r2['id']."/session/".$kampagne['id'],$r2['karakter'],"class='ink' style='float:right;' title='Meld ".$r2['karakter']." fra'");
		echo $r2['rollespiller']." aka ";
		echo "<br/>";

	}
	else
	{
		echo "<span class='ink' style='float:right;'>".$r2['karakter']."</span>".$r2['rollespiller']." aka <br/>";
	}

}


/*			foreach($deltagere_individer as $r)
			{
				echo anchor("core/vis/se/individ/".$r['id'],$r['navn'],"class='ink' style='font-size:0.8em;'"); 
				echo " "; 
				echo anchor("core/rediger/begivenhed_deltager/slet/".$kampagne['id']."/".$r['id']."/begivenhed"," ","class='slet'");
				echo "<br>";
				if($r['start']!=0 or $r['start']!=0)
				{
					echo " (".$r['start_navn']." til ".$r['slut_navn'].") ";	
				}
			echo $r['id'];

		
			}*/
	?></p>
	</div>
	<?
		echo br(3);
		echo "<h4>Kampagnens Sessioner</h4>";
		foreach($sessions as $r) 
		{
			echo $r['nummer']." ";
			echo $r['navn'];
			echo "<br/>";
		}
	}

?>
			<?		


/*foreach($pcer as $r) :?>
			<p><a class="ink" style="font-size:0.9em;" href="<? echo base_url();?>deltager/go_ingame/<? echo $r['pc_id']; ?>"><? echo $r['pc_navn'];?></a></p>

			<? endforeach;*/?>
